import {Component, OnInit} from '@angular/core';
import {EntityService, enumBtnCode} from '../../shared/services/entity.service';
import {MenuService} from '../service/menu.service';
import {BaseListComponent} from '../../shared/component/base/base-list/base-list.component';
import {HandleParams} from '../../shared/utils';
import {AppContextService} from '../../shared/services/app-context.service';

@Component({
  selector: 'app-menu-list',
  templateUrl: './menu-list.component.html',
  providers: [ { provide: EntityService, useClass: MenuService } ]
})
export class MenuListComponent extends BaseListComponent implements OnInit {
  constructor(
    private app: AppContextService,
    private thisService: EntityService
  ) {
    super(thisService);
  }
  ngOnInit() {
    this.pager.enabled = false;
    this.pager.pageSize = 999;
  }
}
